package com.ruoyi.dev.domain;

import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 接口信息对象 dev_api
 * 
 * @author yepanpan
 * @date 2025-02-25
 */
@Data
public class DevApi extends BaseEntity
{
    public static final String MODE_READ = "R";
    public static final String MODE_READ_WRITE = "RW";
    public static final String MODE_SYNC = "S";
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    private Long id;

    /** 接口名称 */
    @Excel(name = "接口名称")
    @NotNull
    private String name;

    /** 申请部门 */
    @Excel(name = "申请部门")
    private String deptName;
    @NotNull
    private Long deptId;

    /** 接口权限 */
    @Excel(name = "接口权限", dictType="dev_api_mode", comboReadDict=true)
    @NotNull
    private String mode;

    /** 数据模型 */
    @Excel(name = "数据模型")
    private String modelName;
    @NotNull
    private Long modelId;

    /** 接口地址 */
    @Excel(name = "接口地址")
    @NotNull
    private String uri;

    /** 应用密钥 */
    @Excel(name = "应用密钥")
    private String secret;

    /** 状态 */
    @Excel(name = "状态", dictType="ext_status", comboReadDict=true)
    private String status;


}
